package com.qwz.example;
/**
* @Description: 负责保存模拟运行流程A的对象的备忘录对象
* @Package com.qwz.example.FlowAMementoCareTaker
* @author Qiuwuzhi
* @date 2019/12/26 10:12
* @version V1.0
*/
public class FlowAMementoCareTaker {
    /**
     * 记录被保存的备忘录对象
     */
    private FlowAMockMemento memento;

    /**
     * 保存备忘录对象
     * @param memento
     */
    public void  saveMemento(FlowAMockMemento memento){
        this.memento = memento;
    }

    /**
     * 获取被保存的备忘录对象
     * @return
     */
    public FlowAMockMemento retriveMemento(){
        return this.memento;
    }
}
